set -e
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
cd lab1
make clean
make
cd ..
cd lab2
make clean
make
cd ..
cd lab3
make clean
make
cd ..
cd lab4
make clean
make
cd ..
cd lab5
make clean
make
cd ..
cd lab6
make clean
make
cd ..
cd lab7
make clean
make
cd ..
cd lab9
make clean
make
cd ~
mount ~/ext4.img /mnt
rm -rf /mnt/lab
cp -r ~/linuxlab5 /mnt
mv /mnt/linuxlab5 /mnt/lab
umount /mnt
cd linux-4.4.276
./run.sh
